package com.novax.ex.activity.infrastructure.mapper;

import com.novax.ex.activity.infrastructure.entity.MallProductBanner;
import com.novax.ex.common.base.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
   * @Description
   * @Author zhaolei
   * @Date 2/21/23 2:41 PM
   * @Version 1.0
   */
public interface MallProductBannerMapper extends BaseMapper {
    /**
     * @description: 获取主图
     * @author: Wade
     * @date: 2/22/23 3:37 PM
     * @param: []
     * @return: com.novax.ex.activity.infrastructure.entity.MallProductBanner
     **/
    MallProductBanner getByMainImg(@Param("mallProductId")Long mallProductId);

    /***
     * Description: 统计商品图片数量
     *
     * @return long
     * @author Deucalion@novax.email
     * @date 2023/3/6 16:47
     */
    long countBannerNum(@Param("mallProductId") Long mallProductId);
}
